/**
 *  @file SDLKeyboardController.h
 *
 *  @date 16-nov-2009
 *  @author Ives van der Flaas
 */

#ifndef SDLKEYBOARDCONTROLLER_H_
#define SDLKEYBOARDCONTROLLER_H_

#include "controller.h"

namespace si_sdl
{

/**
 * A controller that'll base its movements on the keypresses found by the SDL.
 */
class SDLKeyboardController: public si::Controller
{
public:
	SDLKeyboardController(si::Vector2 position, si::Vector2 size);
	virtual void update(double time);

	bool goingLeft() const { return fGoingLeft; };
	bool goingRight() const { return fGoingRight; };

private:
	bool fGoingLeft, fGoingRight;

};

}

#endif /* SDLKEYBOARDCONTROLLER_H_ */
